package com.bafa.front.admin;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.bafa.dbcache.LeagueCache;
import com.bafa.exceptions.ErrorException;
import com.bafa.objects.PageBean;
import com.bafa.services.*;
public class DisplayCreateSeasonServlet extends AdminServlet {

	
	@Override
	public void doAdminEvent(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException, ErrorException {
		request.setAttribute("TEAMS",RetrieveServices.getAllTeams());
		PageBean pageBeanTemp = (PageBean)LeagueCache.getPages().get("createseason");
		pageBean = new PageBean(pageBeanTemp);
	}
}
